package cn.beyond.vehicleManagement.dao;

import cn.beyond.vehicleManagement.pojo.SysUser;
import cn.beyond.vehicleManagement.pojo.VehicleGasFiller;
import cn.beyond.vehicleManagement.util.DataBaseUtil;

import java.util.List;
import java.util.Map;

public class VehicleGasFilterDao {
    DataBaseUtil<VehicleGasFiller> userDao=new DataBaseUtil<>();

    /**
     * 添加用户
     * @return
     */
    public int addVehicleGasFiller(VehicleGasFiller vehicleGasFiller){
        return    userDao.addUtil(vehicleGasFiller,"vehicle_gas_filler");
    }

    /**
     * 删除用户
     * @param obj
     * @param column
     * @return
     */
    public int deleteVehicleGasFiller(Object obj,String column){
        return userDao.delByIdUtil(obj,"vehicle_gas_filler",column);

    }

    /**
     * 修改用户
     * @return
     */
    public int update(VehicleGasFiller vehicleGasFiller){
        return  userDao.updateByidUtil(vehicleGasFiller,"vehicle_gas_filler");
    }

    /**
     * 查询结果返回单条记录

     * @param selectmap
     * @return
     */
    public VehicleGasFiller selectVehicleGasFillerByOne(VehicleGasFiller vehicleGasFiller,
                                                        Map<String, Object> selectmap){
        return userDao.selectONE(vehicleGasFiller,"vehicle_gas_filler",selectmap);
    }

    /**
     * 查询结果返回多条记录
     * @param selectmap
     * @return
     */
    public List<VehicleGasFiller> selectUserByCondition(VehicleGasFiller vehicleGasFiller,
                                                        Map<String, Object> selectmap){
        return  userDao.selectAll(vehicleGasFiller,"vehicle_gas_filler",selectmap);
    }
}
